{template('../public/header.html')}

<!--文章列表-->
<div class="pad_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="m" value="admin" />
                <input type="hidden" name="c" value="article" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                {:L('publish_time')}：
                <input type="text" name="time_start" id="time_start" class="date J_date_picker" size="12" value="{$search("time_start")}">
                -
                <input type="text" name="time_end" id="time_end" class="date J_date_picker" size="12" value="{$search("time_end")}">
                &nbsp;&nbsp;所属栏目：
                <select class="J_cate_select mr10" data-pid="{$topid}" data-uri="{:U('class/ajax_getchilds?module_id=1&typeid=0')}" data-selected="{$search("selected_ids")}"></select>
                <input type="hidden" name="classid" id="J_cate_id" value="{:search("classid")}" />
				&nbsp;&nbsp;{:L('posid_name')}:
				<select name="posid">
					<option value="">--{:L('all')}--</option>
					{$posid_list type='dict' key='i'}
						<option value="{$i}" {if search("posid")=Cstr(i)}selected="selected"{/if}>{:posid_list(i)}</option>
					{/$posid_list}
				</select>
                &nbsp;&nbsp;{:L('status')}:
                <select name="status">
                <option value="">-{:L('all')}-</option>
                <option value="1" {if search("status")="1"}selected="selected"{/if}>已审核</option>
                <option value="0" {if search("status")="0"}selected="selected"{/if}>未审核</option>
                </select>
                &nbsp;&nbsp;{:L('keyword')} :
                <input name="keyword" type="text" class="input-text" size="25" value="{$search("keyword")}" />
                <input type="submit" name="search" class="btn" value="{:L('search')}" /><input type="button" name="button" class="btn" value="重设" onclick="location='{:U('article/index?menuid=' & menuid)}'" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('article/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="30">序号</th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="title">{:L('article_title')}</span></th>
                <th width=130><span data-tdtype="order_by" data-field="classid">所属栏目</span></th>
                <th width=130>{:L('author')}</th>
				<th width=150><span data-tdtype="order_by" data-field="add_time">{:L('publish_time')}</span></th>
                <th width=60><span data-tdtype="order_by" data-field="ordid">{:L('sort_order')}</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
			{$rs type='rs' pagesize='0' }
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$rs('id')}"></td>
                <td align="center">{:p*20-20+k}</td>
                <td align="center">{$rs('id')}</td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="{$rs('id')}" class="tdedit" style="color:{$rs('colors')};">{$rs('title')}</span>
				{if not ab.c.isnul(rs("thumb"))}
				<!--<span class="attachment_icon J_attachment_icon" file-type="image" file-rel="{$img_dir}{$rs('thumb')}"></span>-->
				<span class="attachment_icon J_preview" data-bimg="{$img_dir}{$rs('thumb')}"></span>
				{/if}
				{if rs("posid")>0}<span class="posid_icon"></span>{/if}
				</td>
                <td align="center"><b>{:cate_list(rs("classid").Value)}</b></td>
				<td align="center"><b>{$rs('author')}</b></td>
                <td align="center">{:stdTime(rs('add_time'))}</td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$rs('id')}" class="tdedit">{$rs('ordid')}</span></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$rs('id')}" data-field="status" data-value="{$rs('status')}" src="__STATIC__/images/admin/toggle_{if rs('status')=1}enabled{else}disabled{/if}.gif" /></td>
                <td align="center"><a href="{:u('article/edit?id='& rs('id') &'&menuid=' & menuid)}">{:L('edit')}</a> | <a href="javascript:void(0);" class="J_confirmurl" data-acttype="ajax" data-uri="{:u('article/delete?id='& rs('id'))}" data-msg="您确定要删除吗？">{:L('delete')}</a></td>
            </tr>
			{$k++}
			{/$rs}
			{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="10">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall"/>{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('article/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">
			{@pager data='rs'}
				{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
			{/@pager}
		</div>
    </div>

    </div>
</div>
{template('../public/footer.html')}
<script>
$('.J_cate_select').cate_select({top_option:lang.all});
</script>
</body>
</html>
